package com.link.base.base.mvg.dao.mybatis.basic.mapper;

import com.link.base.base.mvg.model.Mvg;
import com.link.core.basic.model.BasicModel;

import java.util.HashMap;
import java.util.List;


/**
 * @author unknown
 * @date unknown
 * @comments mvg操作
 */
public interface MvgMapper {

    /**
     * 分页查询左列表
     *
     * @param entity
     * @return List HashMap
     * @throws Exception
     */
    public List<HashMap<String, String>> queryLeftListPage(BasicModel entity) throws Exception;

    /**
     * 分页查询右列表
     *
     * @param entity
     * @return List HashMap
     * @throws Exception
     */
    public List<HashMap<String, String>> queryRightListPage(BasicModel entity) throws Exception;

    /**
     * 删除右列表所有数据
     *
     * @param entity
     * @throws Exception
     */
    public void deleteAllById(Mvg entity) throws Exception;

    /**
     * 删除一条数据
     *
     * @param entity
     * @throws Exception
     */
    public void deleteById(Mvg entity) throws Exception;

    /**
     * 新建一条数据
     *
     * @param entity
     * @throws Exception
     */
    public void insert(Mvg entity) throws Exception;

    /**
     * 查询默认ID
     * <P>备用方法,一般情况不需要用到；当默认的方法不满足时使用时可启用。by heqiqian 2016-10-31</P>
     *
     * @param entity
     * @return String 默认ID
     * @throws Exception
     */
    public String queryDefault(Mvg entity) throws Exception;

    /**
     * 设置主表默认id
     *
     * @author yrf
     * @param entity
     * @throws Exception
     */
    void setDefaultIdUpdate(Mvg entity) throws Exception;
}
